package vip.jc.integration.dynamicwithshardingSphere.service;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import vip.jc.integration.dynamicwithshardingSphere.dao.MultiSourceMapper;
import vip.jc.integration.dynamicwithshardingSphere.dao.entity.MultiSource;

@Slf4j
@Service
public class MultiSourceService {

    @Autowired
    private MultiSourceMapper multiSourceMapper;

    public MultiSource getById(Long id) {
        return multiSourceMapper.selectById(id);
    }

    public void addMultiSource(MultiSource multiSource) {
        multiSourceMapper.addMultiSource(multiSource);
    }
}
